ARG JDK13_ES7_VERSION=elasticsearch:7.4.2
FROM ${JDK13_ES7_VERSION}
RUN chmod  777 -R /usr/share/elasticsearch/data/
RUN yum install -y unzip
WORKDIR /usr/share/elasticsearch/plugins
COPY ./elasticsearch-analysis-ik-7.4.2.zip ./elasticsearch-analysis-ik/
RUN cd elasticsearch-analysis-ik && unzip elasticsearch-analysis-ik-7.4.2.zip
EXPOSE 9200 9300